package com.rpay.service.level.impl;

import com.rpay.dao.mapper.RpayLevelMapper;
import com.rpay.model.level.RpayLevel;
import com.rpay.service.level.ILevelService;
import org.apache.ibatis.session.RowBounds;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 */
@Service("levelServiceImpl")
public class LevelServiceImpl implements ILevelService {
//    @Autowired
//    private LevelDao levelDao;

    @Autowired
    private RpayLevelMapper rpayLevelMapper;

    public List getDataList(RpayLevel rpayLevel, RowBounds rowBounds) {
        List result = rpayLevelMapper.selectAll();
        return result;
    }

    public int updateRpayLevel(RpayLevel rpayLevel) {
        return rpayLevelMapper.updateByPrimaryKeySelective(rpayLevel);
    }

    public RpayLevel getDetail(Integer id) {
        return rpayLevelMapper.selectByPrimaryKey(id);
    }
}
